gdk_error_trap_pop() has been marked with G_GNUC_WARN_UNUSED_RESULT,
so use gdk_error_trap_pop_ignore() whenever the return value is ignored.
gdk_error_trap_push ();
result = XGetWindowAttributes (xdisplay, icon_window,
&window_attributes);
- gdk_error_trap_pop ();
+ gdk_error_trap_pop_ignored ();
if (!result) /* Window already gone */
return NULL;
* since that is asynchronous.
*/
XSync (xdisplay, False);
- gdk_error_trap_pop ();
+ gdk_error_trap_pop_ignored ();
#else
/* Hiding and showing is the safe way to do it, but can result in more
* flickering.
gdk_error_trap_push ();
XGetClassHint (xdisplay, xwindow, &ch);
- gdk_error_trap_pop ();
+ gdk_error_trap_pop_ignored ();
if (res_class)
*res_class = NULL;